package com.shanzmoo.db.third.service;

import com.shanzmoo.base.bean.PageRespBase;
import com.shanzmoo.base.bean.SResponse;
import com.shanzmoo.db.report.entity.vo.ProductSalesVO;
import com.shanzmoo.db.third.entity.PlatformOrderEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shanzmoo.db.third.entity.bo.PlatformOrderAddLogisticsBO;
import com.shanzmoo.db.third.entity.bo.PlatformOrderSellerRemarkBO;
import com.shanzmoo.db.third.entity.query.PlatformlOrderPageQuery;
import com.shanzmoo.db.third.entity.vo.PlatformOrderPageVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 第三方平台订单 服务类
 * </p>
 *
 * @author Gzhao
 * @since 2021-01-07
 */
public interface IPlatformOrderService extends IService<PlatformOrderEntity> {

    /**
     * 分页列表查询
     * @param query
     * @return
     */
    SResponse<PageRespBase<PlatformOrderPageVO>> getPageList(PlatformlOrderPageQuery query);

    /**
     * 添加发货信息
     * @param logistics
     * @return
     */
    SResponse<Boolean> addLogistics(PlatformOrderAddLogisticsBO logistics, Integer currentUserId);

    /**
     * 添加卖家备注
     * @param sellerRemark
     * @return
     */
    SResponse<Boolean> addSellerRemark(PlatformOrderSellerRemarkBO sellerRemark, Integer currentUserId);

    /**
     * 按excel导入第三方订单
     * @param file
     * @return
     */
    SResponse<Boolean> importByExcel(MultipartFile file);

    List<ProductSalesVO> getProductSales();
}
